import random


macs = "01-AF-3B"
str2 = "0123456789ABCDEF"
with open("mac.txt", "w+") as f:
    for i in range(100):
        ran_num1 = random.randint(0, 15)
        ran_num2 = random.randint(0, 15)
        ran_num3 = random.randint(0, 15)
        ran_num4 = random.randint(0, 15)
        ran_num5 = random.randint(0, 15)
        ran_num6 = random.randint(0, 15)
        str3 = f"{macs}-{str2[ran_num1]}{str2[ran_num2]}-{str2[ran_num3]}{str2[ran_num4]}-{str2[ran_num5]}{str2[ran_num6]}\n"
        f.write(str3)
        # lst1.append(str3)
        print(str3)
    # print(f"{macs}{lst1[0]}{lst1[1]}{lst1[2]}")


